<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable = 0"/>
    <title>{{ $listsSetting->title }}</title>
    <meta name="description" content="{{ $listsSetting->description }}">
    <link rel="shortcut icon" href="https://ttwls.oss-cn-beijing.aliyuncs.com/assets/images/admin/favicon.ico"/>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/jquery-3.5.1-min.js?versionId=CAEQFBiBgIDTy.Pa0hciIDc3NWY0YjVhMTdlYTRmMDliNzRlMGQyMWUxMTg5MjQw"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/libs/cryptojs/md5.js?versionId=CAEQIRiBgICR256j_xciIGE0MmE2NjAwY2RlYzQyODA4OGE5YzI4ZTVjNGNmYzA5"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/clipboard.min.js?versionId=CAEQHxiBgMCkp7iT5hciIGQ3ZmZkMWFlNWYxNDQ0Y2RhOWU3ZWUyOTU4NzhiMDRi"></script>
    <script src="https://ttwls.oss-cn-beijing.aliyuncs.com/v/v6/wailianstatic.min.js"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/wailian-share-1.0.js?versionId=CAEQHxiBgIDvqJO58RciIGJhN2RhODg2ZDg0MjRiNDk5ZWI2M2M4OWJkYjk1Yjdh"></script>

    <script src="http://ttwls.oss-cn-beijing.aliyuncs.com/v/v6/otherstatic.min.js?v=2022062401"></script>
    <link rel="stylesheet" type="text/css" href="https://ttwls.oss-cn-beijing.aliyuncs.com/v/v3/home_links.min.css?v=2022062401">
    <link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/2.4.0/weui.min.css?v=202207071010">
</head>
<body>
    <div id="public-web-container" class="public-container">
        <div class="public-container-main">
            <div class="safe-notice">
                <input type="hidden" id="links_id" value="{{ $listsSetting->links_id }}">
                <input type="hidden" id="type" value="{{ $listsSetting->type }}">
                <img src="https://nilife.oss-cn-beijing.aliyuncs.com/miniapp/images/setting/safe.png">
                <p>本链接经过<font style="font-weight: 500;color: #333333;">SSL安全加密</font>,请放心点击!</p>
            </div>
            <div class="wechat-addfriend-cotainer">
                <img src="{{ $listsSetting->logo }}" class="wechat-addfriend-avatar">
                <font class="wechat-addfriend-nike">{{ $listsSetting->nike }}</font>
                <img id="wechataddgif" class="wechat-addfriend-help" src="">

                <div class="wechat-addfriend-button">
                    <a href="weixin://" class="wechat-addfriend-addbutton" id="copywechat" data-clipboard-text="{{ $listsSetting->wechat }}">点击打开微信</a>
                    <div class="wechat-addfriend-addbutton" onclick="bdShare();" id="timelinewechat" style="display: none;">点击打开微信</div>
                    <div class="wechat-addfriend-button-descript">使用百度或QQ浏览器可以直接跳转，点击前往<font onclick="launchBaidu();">手机百度</font>或<font onclick="launchQQBrowser();">QQ浏览器</font>。</div>
                </div>
                <div class="wechat-addfriend-copyright">
                    <a href="https://nilife.cn" target="_blank">Copyright ©️2013-2021 nilife.cn</a>
                </div>
            </div>
        </div>
        <div id="nativeShare"></div>
    </div>
    <div role="alert" id="toast" style="display: none;">
        <div class="weui-mask_transparent"></div>
        <div class="weui-toast">
            <i class="weui-icon-success-no-circle weui-icon_toast"></i>
            <p class="weui-toast__content">已复制微信号，请前往微信添加！</p>
        </div>
    </div>
    <script>
        var share = new wailianShare("{{ $listsSetting->links_id }}","{{ $listsSetting->end_time }}","{{ isset($listsSetting->describe) ? $listsSetting->describe : '不用转发,点我直接跳转！' }}","{{ $listsSetting->logo }}","{{ $listsSetting->msg }}","timeline");
        function showHelp() {
            $("#wechataddgif").attr("src","https://nilife.oss-cn-beijing.aliyuncs.com/wepage/20210605-153827-192.gif");
            $("#wechataddgif").fadeToggle();
        }
        $(document).ready(function(){
            var copywechat = new ClipboardJS("#copywechat");
            copywechat.on('success', function(e) {
                $("#toast").fadeIn(100);
                setTimeout(function () {
                    $("#toast").fadeOut(100);
                }, 2000);
                $("#wechataddgif").attr("src","https://nilife.oss-cn-beijing.aliyuncs.com/wepage/20210605-153827-192.gif");
                $("#wechataddgif").fadeToggle();
                window.location.href="weixin://";
            });
            share.init();

            linksStatistics();
        });

        function bdShare() {
            share.bdShare();
        };

        function qqShare() {
            share.qqShare();
        };

        function ucShare() {
            share.ucShare();
        };

        function launchBaidu() {
            share.launchBaidu();
        };

        function launchQQBrowser() {
            share.launchQQBrowser();
        };

    </script>
</body>
</html>